<?php
class MaintenancePlanModel extends BaseModel
{
    /**
     * 获取当前活动的机会
     * @author ice<iceinto@mallog.com.cn>
     */
    public function getActivityList()
    {
        $dayTime = $this->getThisDayTime();
        $map = array();
        $map['start_time'] = array('elt', $dayTime);
        $map['end_time'] = array('egt', $dayTime);
        return $this->field('itemid,title')->where($map)->select();
    }
    
    /**
     * 获取所有计划列表
     * @author ice<iceinto@mallog.com.cn>
     */
    public function getAllList()
    {
    	return $this->field('itemid,title')->select();
    }
}